package repos

import javax.inject.Inject

import models.Organization
import org.sedis.Pool
import play.api.db.slick.DatabaseConfigProvider
import repos.Tables.OrganizationTable
import slick.backend.DatabaseConfig
import slick.driver.JdbcProfile
import slick.lifted.TableQuery

class OrganizationRepository @Inject()(databaseConfigProvider: DatabaseConfigProvider, cache: Pool)
  extends BaseRepository[Organization, OrganizationTable](Tables.organizations, cache) {
  override val dbConfig: DatabaseConfig[JdbcProfile] = databaseConfigProvider.get[JdbcProfile]
}
